<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>Agent注册</title>
<link rel="icon" href="favicon.ico" type="image/ico">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="yinqi">
<link href="__STATIC__/admin/css/bootstrap.min.css" rel="stylesheet">
<link href="__STATIC__/admin/css/materialdesignicons.min.css" rel="stylesheet">
<link href="__STATIC__/admin/css/style.min.css" rel="stylesheet">
<link href="__STATIC__/admin/css/login.css" rel="stylesheet">

<!--tags插件css-->
<link type="text/css" rel="stylesheet" href="__STATIC__/admin/js/jquery-tagsinput/jquery.tagsinput.min.css">
<!--上传插件css-->
<link type="text/css" rel="stylesheet" href="__STATIC__/admin/js/webuploader/webuploader.css">
<!--灯箱效果插件css-->
<link type="text/css" rel="stylesheet" href="__STATIC__/admin/js/magnific-popup/magnific-popup.min.css">
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/animate.min.css">
<!--引入下拉插件css-->
<!-- <link rel="stylesheet" type="text/css" href="__STATIC__/admin/js/bootstrap-select/bootstrap-select.min.css"> -->
<link href="__STATIC__/common/select2/select2.css" rel="stylesheet">
<!--日期选择器css-->
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
<!--时间日期选择器css-->
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/style.min.css">

<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/style.min.css">
<style type="text/css">
    #file_list_image li {min-width: 33%;}
</style>
</head>
  
<body>
<div class="lyear-wrapper" style="background-image: url(__STATIC__/admin/images/login-bg.jpg); background-size: cover;">
  <div class="lyear-login">
    <div class="login-center" style="max-width: 800px;min-width: 300px;width: 60%;">

      <div class="login-header text-center">
        <a href="javascript:void(0)"> <img alt="light year admin" src="__UPLOAD__/{:$configs['WX_SYSTEM_LOGO']}" style="max-width: 100px;"> </a>
      </div>
      <form action="" method="post">
        {include file="html/fields" /}

        
        <div class="form-group">
          <button class="btn btn-block btn-primary" type="submit">提交信息</button>
        </div>
      </form>
      <hr>
      <footer class="col-sm-12 text-center">
        <p class="m-b-0">Copyright © 2021 <a href="#">{:$configs['SYSTEM_NAME']}</a>. All right reserved</p>
      </footer>
    </div>
  </div>
</div>
<script type="text/javascript" src="__STATIC__/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/bootstrap.min.js"></script>
<!--tags插件-->
<script type="text/javascript" src="__STATIC__/admin/js/jquery-tagsinput/jquery.tagsinput.min.js"></script>
<!--上传插件-->
<script type="text/javascript" src="__STATIC__/admin/js/webuploader/webuploader.js"></script>
<!--灯箱效果插件-->
<script type="text/javascript" src="__STATIC__/admin/js/magnific-popup/magnific-popup.min.js"></script>
<!--通知消息插件-->
<script type="text/javascript" src="__STATIC__/admin/js/bootstrap-notify.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/main.min.js"></script>
<!--引入下拉插件js-->
<!-- <script type="text/javascript" src="__STATIC__/admin/js/bootstrap-select/bootstrap-select.min.js"></script> -->
<script src="__STATIC__/common/select2/select2.min.js"></script>
<!--省市选择-->
<script type="text/javascript" src="__STATIC__/common/distpicker/distpicker.data.js"></script>
<script type="text/javascript" src="__STATIC__/common/distpicker/distpicker.js"></script>
<!-- 百度编辑器 -->
<script type="text/javascript" src="__STATIC__/common/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/common/ueditor/ueditor.all.js"></script>
<!--日期选择器js-->
<script type="text/javascript" src="__STATIC__/admin/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<!--时间日期选择器js-->
<script type="text/javascript" src="__STATIC__/admin/js/momentjs/moment.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/momentjs/locale/zh-cn.min.js"></script>
<!--自定义扩展-->
<script type="text/javascript" src="__STATIC__/common/cch.js"></script>
<script type="text/javascript">
  var static_path = '__STATIC__';
  var upload_path = '__UPLOAD__';
  var upload_type = 'admin';
</script>

<script type="text/javascript">
    var cchint = null;
    function sendSms(){
        $.ajax({
            url:'{:url('getLoginSms')}',
            data:{mobile:$("#mobile").val(),is_check:0},
            type:'post',
            dataType:'json',
            success:function(data){
                if (data.code == 1) {
                    $("#smsBtn").removeClass('btn-primary');
                    $("#smsBtn").addClass('btn-secondary');
                    $("#smsBtn").html('60');
                    $("#smsBtn").attr('onclick','');
                    cchint = setInterval(function(){

                        var num = $("#smsBtn").html();
                        console.log(num);
                        num--;
                        if (num <= 0) {
                            $("#smsBtn").removeClass('btn-secondary');
                            $("#smsBtn").addClass('btn-primary');
                            $("#smsBtn").html('获取验证码');
                            $("#smsBtn").attr('onclick','sendSms()');
                            clearInterval(cchint);
                        }else{
                            $("#smsBtn").html(num);
                        }
                    },1000);
                }else{
                    alert(data.msg);
                }
            }
        });
    }

</script>
</body>
</html>